import Vue from "vue";
import Router from "vue-router";
import Home from "./home/home";
import Login from "./login/login";
import Registr from "./registr/registr";
import Member from "./member/member";
import LoadDetail from "./loadDetail/loadDetail";
import Advertisement from "./advertisement/advertisement";


Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: "/",
            name: "Home",
            component: Home
        },
        {
            path: "/login",
            name: "Login",
            component: Login
        },
        {
            path: "/registr",
            name: "Registr",
            component: Registr
        },
        {
            path: "/member",
            name: "Member",
            component: Member
        },
        {
            path: "/loadDetail",
            name: "LoadDetail",
            component: LoadDetail
        },
        {
            path: "/advertisement",
            name: "Advertisement",
            component: Advertisement
        }
    ]
})
